import java.io.*;

public class Demo10 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("./output.txt")){
            BufferedWriter bufferedWriter = new BufferedWriter(writer);
            bufferedWriter.write("Hello World");
        }catch (IOException e){
            throw new RuntimeException(e);
        }
    }
}
